from odoo import fields, models, api
import datetime


class opportunityProject(models.Model):
    _name = "op.opportunity.project"
    _description = "商机穿透项目表  表体"
    _rec_name = 'project'

    # 对应被考核人员
    category = fields.Selection([
        ('基本面', '基本面'),
        ('业务判断', '业务判断'),
        ('关键指标', '关键指标'),
    ], string='类别')
    project = fields.Char(string='项目名称')
    value = fields.Char(string='数值')
    type = fields.Selection([
        ('数值', '数值'),
        ('文本', '文本'),
    ], string='数值类型')
    verification_method = fields.Char(string='验证方式')
    score = fields.Integer(string='分数值')
    score_result = fields.Integer(string='给分')
    opportunity_customer = fields.Many2one('op.opportunity.customer', string='客户名称')
    rule = fields.Char(string='给分规则')

